/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 数据库建模配置字段对象 isfd_database_model_config_fields
 *
 * @author lj
 * @date 2025-01-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("isfd_database_model_config_field")
public class IsfdDatabaseModelConfigField extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 模型ID
     */
    private Long modelId;

    /**
     * 父字段ID
     */
    private Long parentFieldId;

    /**
     * 字段名称
     */
    private String fieldName;

    /**
     * 字段中文名称
     */
    private String fieldChineseName;

    /**
     * 字段描述
     */
    private String fieldDescription;

    /**
     * 字段类型
     */
    private String fieldType;

    /**
     * 默认值
     */
    private String defaultValue;

    /**
     * 是否允许为空
     */
    private Integer isNullable;

    /**
     * 是否是唯一键
     */
    private Integer isUnique;

    /**
     * 是否是关键字段
     */
    private Integer isKeyField;

    /**
     * 是否已关联
     */
    private Integer isRelated;


    /**
     * 是否是树展示字段
     */
    private Integer isTreeDisplayField;
}
